const path = require('path')
const resolve = dir => {
  return path.join(__dirname, dir)
}
module.exports = {
    lintOnSave: false, //是否开启eslint
    // publicPath: 'http://localhost:8085/',
    publicPath: './',
    devServer: {
        // open:true,  //是否自动弹出浏览器页面
        hot: true,
        // hotOnly: false, //是否开启热更新
        port: 8083,
        disableHostCheck: true,
        proxy: {
          "/sqlflow":{
            target: 'http://192.168.1.8:8080/',
            changeOrigin: true,
            ws: true,
            pathRewrite: {},
          } 
        }
      },
      chainWebpack: config => {
        config.resolve.alias
          .set('_c', resolve('src/components')) // key,value自行定义，比如.set('@@', resolve('src/components'))
      },
}